package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QualityTestMapper;
import com.ruoyi.system.domain.QualityTest;
import com.ruoyi.system.service.IQualityTestService;

/**
 * 质检管理Service业务层处理
 * 
 * @author GGJ
 * @date 2024-05-20
 */
@Service
public class QualityTestServiceImpl implements IQualityTestService 
{
    @Autowired
    private QualityTestMapper qualityTestMapper;

    /**
     * 查询质检管理
     * 
     * @param id 质检管理主键
     * @return 质检管理
     */
    @Override
    public QualityTest selectQualityTestById(String id)
    {
        return qualityTestMapper.selectQualityTestById(id);
    }

    /**
     * 查询质检管理列表
     * 
     * @param qualityTest 质检管理
     * @return 质检管理
     */
    @Override
    public List<QualityTest> selectQualityTestList(QualityTest qualityTest)
    {
        return qualityTestMapper.selectQualityTestList(qualityTest);
    }

    /**
     * 新增质检管理
     * 
     * @param qualityTest 质检管理
     * @return 结果
     */
    @Override
    public int insertQualityTest(QualityTest qualityTest)
    {
        return qualityTestMapper.insertQualityTest(qualityTest);
    }

    /**
     * 修改质检管理
     * 
     * @param qualityTest 质检管理
     * @return 结果
     */
    @Override
    public int updateQualityTest(QualityTest qualityTest)
    {
        return qualityTestMapper.updateQualityTest(qualityTest);
    }

    /**
     * 批量删除质检管理
     * 
     * @param ids 需要删除的质检管理主键
     * @return 结果
     */
    @Override
    public int deleteQualityTestByIds(String[] ids)
    {
        return qualityTestMapper.deleteQualityTestByIds(ids);
    }

    /**
     * 删除质检管理信息
     * 
     * @param id 质检管理主键
     * @return 结果
     */
    @Override
    public int deleteQualityTestById(String id)
    {
        return qualityTestMapper.deleteQualityTestById(id);
    }
}
